package com.zzxz.practicaltrainingsys.service;

import com.github.pagehelper.PageInfo;
import com.zzxz.practicaltrainingsys.entity.Datafile;

import java.util.Collections;
import java.util.List;
import java.util.Map;

import static com.zzxz.practicaltrainingsys.component.WebSocketServiceHelper.teamMapper;

public interface DatafileService {
    public List<String> getDatafileTypes();

    public List<Datafile> getDatafileInfo();

    int insertDatafile(Datafile datafile);

    int deleteDatafileById(Integer data_id);

    public List<Map<String, Object>> getAllDataFiles();

    PageInfo<Map<String, Object>> findDatafilePages(Integer pageNum, Integer  pageSize);
    int circleInsertDatafile(Datafile datafile);

    public List<Map<String, Object>> getDataFileByStudent(Integer student_id);

    List<Map<String, Object>> getDataFilesByTeacherAndProject(Integer teacher_id, Integer project_id);

    List<Map<String,Object>> getDataFilesByProject(Integer project_id);

}
